package com.demo.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * DemoController
 *
 * @author liujin
 * @date 2020/12/3 21:45
 */
@RequestMapping("/customer")
@RestController
public class DemoController {

    @RequestMapping("/hello")
    public String hello(String name) {
        System.out.println("customer -- " + name);
        return "customer - hello";
    }

    @RequestMapping("/say/{word}")
    public String say(@PathVariable("word") String word) {
        return word;
    }

}
